// 引入模板
const express = require('express');
// 路由
const route = express.Router();
// 引入控制器
const knowledgeCtrl = require('../contorllers/lyj_knowledgeCtrl.js');
// 显示我的知识页面
route.get('/lyj_knowledge', knowledgeCtrl.lyj_knowledge);
// 显示添加知识页面
route.get('/lyj_knowledge_add', knowledgeCtrl.lyj_knowledge_add);
route.get('/lyj_knowledge_add2', knowledgeCtrl.lyj_knowledge_add2);


route.get('/lyj_knowledge_show', knowledgeCtrl.lyj_knowledge_show)
// 添加数据
route.get('/writeAdd1', knowledgeCtrl.writeAdd1);
// 显示添加数据页面
// route.get('/lyj_knowledge_show', knowledgeCtrl.lyj_knowledge_show);
route.get('/showUser1', knowledgeCtrl.showUser1);
route.get('/showUser2', knowledgeCtrl.showUser2);
route.get('/showUser3', knowledgeCtrl.showUser3);
route.get('/showUser4', knowledgeCtrl.showUser4);

// 删除数据
route.get('/delUser2', knowledgeCtrl.delUser2);
// 修改数据
route.get('/userUpdate2', knowledgeCtrl.userUpdate2);

// 暴露
module.exports = route;